<template>
  <div class="auth-box">
    <div class="title">{{ props.title }}</div>
    <div class="content">
      <slot></slot>
    </div>
  </div>
</template>

<script setup lang="ts">
export interface Props {
  title: string;
}

const props = withDefaults(defineProps<Props>(), {
  title: () => '登录'
})

</script>

<style scoped>
.auth-box {
  width: 500px;
  height: 350px;

  box-sizing: border-box;
  padding: 20px;

  border: 1px solid #ccc;
  border-radius: 20px;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.title {
  font-size: 26px;
}

.content {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
</style>